package com.leo.train.business.service;

import com.leo.train.business.dto.CarriageQueryDto;
import com.leo.train.business.entity.Carriage;
import com.leo.train.business.vo.CarriageQueryVo;
import com.leo.train.common.resp.PageResult;

public interface CarriageService {

    /**
     * 保存车厢信息
     * @param carriage
     */
    void save(Carriage carriage);

    /**
     * 删除车厢信息
     * @param id
     */
    void deleteById(Long id);

    /**
     * 分页查询车厢信息
     * @param carriageQueryDto
     * @return
     */
    PageResult<CarriageQueryVo> list(CarriageQueryDto carriageQueryDto);

    /**
     * 查询车厢信息
     * @param id
     * @return
     */
    CarriageQueryVo detail(Long id);

}
